﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Company.Web.Models.SharedModels.SideBarModel>" %>

<div id="right_sidebar">
    <% if (Model != null && Model.Types != null) %>
    <% { %>
    <% foreach (var item in Model.Types) %>
    <% { %>
       <%=Html.ActionLink(item.Name, "index", "products", new { l=ViewData["Route_L"], a = item.ID }, null) %>    
    <% } %>
    <% } %>
</div>    
<div id="div_product_serch">
    <form action='<%=Url.Action("index","products", new { l= ViewData["Route_L"] } ) %>' method="post">
        <label for="Serch_Number">Search</label>
        <input id="Serch_Number" class="serchtxt" name="Serch.Number" type="text" />
        <input class="serchbtn" type="submit" value="." />
    </form>
</div>
<style type="text/css">
    #right_sidebar
    {
        margin-top:60px;
        height:auto;
        overflow:hidden;
    }
    #right_sidebar a 
    {
        width:95%;
        text-align:left;
        float:left;
        line-height:24px;
        margin-left: 10px;
    }
    
</style>